package com.tongfusoft.document.doc.service;

import com.tongfusoft.document.entity.Users;

public interface IDocAuthenticationService {

	/**
	 * 

	 * @param groupId
	 * @param user
	 * @return
	 */
	public boolean isRead(String groupId,Users user);
	
	
	
	
	/**
	 * 用户对安全组是否有写的权限
	 * @param groupId
	 * @param user
	 * @return
	 */
	public boolean isWrite(String groupId,Users user);
	
	/**
	 * 判断用户对安全组下的文档是否有删除权限
	 * @param groupId
	 * @param user
	 * @return
	 */
	public boolean isDelete(String groupId,Users user);
	
	/**
	 * 获取当前文档的安全组
	 * @param docName
	 * @param docId
	 * @return
	 */
	public String getGroupId(String docName,String docId);
	
}
